export default {
  namespaced: true,
  state: {
    info: {
      id: 1
    }
  },

  getters: {
    infoId: state => {
      return state.info.id
    }
  },

  mutations: {
    SET_INFO: (state, payload) => {
      state.info = {
        ...state.info,
        ...payload.info
      }
    }
  },

  actions: {
    updateInfo: ({ commit }, payload) => {
      commit('SET_INFO', payload)
    }
  }
}
